﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface ICountry {

        /// <summary>
        /// Insert new CountryEnt
        /// </summary>
        /// <param name="item">CountryEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(CountryEnt item);
        /// <summary>
        /// Update CountryEnt
        /// </summary>
        /// <param name="item">CountryEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(CountryEnt item);
        /// <summary>
        /// Delete a CountryEnt
        /// </summary>
        /// <param name="iD">ID of CountryEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all CountryEnt
        /// </summary>
        /// <returns>return a list of CountryEnt (empty list if no CountryEnt exists)</returns>
        List<CountryEnt> GetAll();
    }
}
